package com.bage.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 安全配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "security")
public class SecurityConfig {

    // 是否开启安全系统
    private Boolean enable = false;

    // 获取用户信息方式(token中获取)
    private String getUserType = "token";

    // token过期时间
    private Integer expire = 3600;

    private List<String> ignore;

}
